Skip to content

feat(UI): issue related#1221

Merged
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat/idontknow
Jul 12, 2025
Merged

feat(UI): issue related#1221
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat/idontknow

Conversation

@liuyangjuncong20202570

Copy link
Copy Markdown
Contributor

MR 页面增加Reviews
Issue详情页重构
增加issue close with comment功能
修复issue列表评论数量为0时显示bug

@vercel

vercel Bot commented Jul 12, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 9:46am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements UI improvements for issue and merge request pages, focusing on adding review functionality, refactoring the issue detail page, and implementing "close with comment" features.

  • Adds Reviews dropdown functionality to MR pages with new review status filtering
  • Completely refactors the issue detail page from Ant Design components to custom UI with improved layout and functionality
  • Implements "close with comment" feature that dynamically changes button text based on comment content

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
moon/apps/web/pages/[org]/issue/[id]/index.tsx Wraps issue detail page with Primer theme providers
moon/apps/web/components/SimpleNoteEditor/SimpleNoteContent.tsx Adds onChange callback prop and effect to track editor content changes
moon/apps/web/components/MrView/index.tsx Integrates Reviews dropdown with new review filtering functionality
moon/apps/web/components/Issues/utils/consts.ts Adds review status constants for filtering
moon/apps/web/components/Issues/IssuesContent.tsx Fixes comment count display to hide when count is zero
moon/apps/web/components/Issues/IssueNewPage.tsx Exports previously private components for reuse
moon/apps/web/components/Issues/IssueList.tsx Adds new DropdownReview component for review filtering
moon/apps/web/components/Issues/IssueDetailPage.tsx Major refactor from Ant Design to custom UI with enhanced functionality

const handleUpdate = () => {
const html = editor.getHTML()

onChange?.(html)

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The optional chaining is unnecessary here since there's already a null check for onChange at line 135. Consider using onChange(html) directly for cleaner code.

Suggested change
onChange?.(html)
onChange(html)

Copilot uses AI. Check for mistakes.
const labelMap = useMemo(() => {
const map = new Map()

tags.map((i) => {

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using .map() when the return value is not used. Consider using .forEach() instead for better performance and clarity of intent.

Suggested change
tags.map((i) => {
tags.forEach((i) => {

Copilot uses AI. Check for mistakes.

<Stack className='flex-1'>
<div className='flex h-[100vh] gap-9'>
<div className='flex w-[70%] flex-col'>

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Hard-coded percentage width (70%) makes the layout inflexible. Consider using CSS Grid or Flexbox with more semantic proportions like flex-2 and flex-1.

Suggested change
<div className='flex w-[70%] flex-col'>
<div className='flex flex-2 flex-col'>

Copilot uses AI. Check for mistakes.
@benjamin-747
benjamin-747 added this pull request to the merge queue Jul 12, 2025
Merged via the queue into gitmono-dev:main with commit f2985b1 Jul 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants